package com.example.mybatisplusdemo.entitys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 *
 * JavaBean
 * 定义JavaBean中成员变量时所使用的类型；
 *
 */
@Data
@TableName("tbl_employee")
public class Employee {
    @TableId(type = IdType.AUTO)
    private Integer id;//主键
    @TableField(value = "last_name")
    private String lastName;
    private String email;
    private Integer gender;
    private Integer age;
    @TableField(exist = false)
    private Double salary;//非数据库字段
}
